package com.woniuxy.usersecurity.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/product")
public class ProductController {

    @Secured("ROLE_vip1")
    @GetMapping("/findAll")
    public String findAll(){
        System.out.println(1);
        return "llll";

    }

}
